
<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
    <div class="page-header">
        <div class="container-fluid">
          <h1>产品分类管理</h1>
          <?=$this->breadcrumb->generateHTML();?>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h3 class="panel-title"><i class="fa fa-search"></i>查询型号</h3>
          </div>
          <div class="panel-body">
            <div class="well" style="padding:0 19px;">
              <div class="row">
                <form action="<?=blang_url('productClassify/product_view/modelList')?>" method="post">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label" for="input-name">keyword</label>
                            <input type="hidden" name="site" value="<?=$site?>">
                            <input type="hidden" name="tid" value="<?=$tid?>">
                            <input type="hidden" name="bid" value="<?=$bid?>">
                            <input class="form-control" type="text" name="keyword" value="<?=$keyword?>" size="80" placeholder="keyword">
                        </div>
                    </div>
                    <div class="col-sm-8">
                        <div class="form-group" style="padding-top:37px;">
                            <input class="btn btn-primary" type="submit" name="searchSubmit" value=" <?=lang('smtcx')?> "/>
                        </div>
                    </div>
                </form>
                
              </div>
            </div>
            <div class="table-responsive">
                <table class="table table-bordered table-hover oms-table">
                  <thead>
                    <tr>
                        <th class="text-left">id</th>
                        <th class="text-left">型号名称</th>
                        <th class="text-right">状态</th>
                        <th class="text-right">质保类型</th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php if($dataList): foreach ($dataList as $key=>$row):?>
                    <tr>
                        <td class="text-left"><?=$row['mid']?></td>
                        <td class="text-left"><?=$row['name']?></td>
                        <td class="text-right"><?=$row['authorization']?"<span style='color: #00CC00'>上架</span>":"<span style='color: #ff0000'>下架</span>"?></td>
                        <td class="text-right">
                            <?php
                            switch($row['warranty_type']){
                                case '1':
                                    echo "<span style='color: #00CC00'>保内</span>";
                                    break;
                                case '0':
                                    echo "<span style='color: #ff0000'>保外</span>";
                                    break;
                                default:
                                    break;
                            }
                            ?>
                        </td>
                    </tr>

                    <?php endforeach; else:?>
                        <tr><td colspan="4" class="emptyNumber"><?=lang('public_mygdsj')?>....</td></tr>
                    <?php endif; ?>
                </tbody>
                </table>
                <?php if($pageShow):?>
                <div class="page">
                    <?=$pageShow?>
                </div>
                <?php endif;?>
            </div>
          </div>
        </div>
    </div>


</div>